package com.eh.springDataRedis;

import com.eh.model.User;
import com.eh.springDataRedis.dto.UserRedisRequest;

import java.util.List;

/**
 * Created by David Li on 2016/5/10.
 */
public interface UserRedisTemplateService {
    String getUserDetailKeyName(UserRedisRequest userRedisRequest);

    void updateUser(UserRedisRequest userRedisRequest, User user);

    User getUser(UserRedisRequest userRedisRequest);

    String getUserAggregationKeyName(UserRedisRequest userRedisRequest);

    void updateUserAggregation(UserRedisRequest userRedisRequest, List<User> users);

    List<User> getUserAggregation(UserRedisRequest userRedisRequest);
}
